﻿@model TCM.Employee

@{
    ViewBag.Title = "Edit";
}


@using (Html.BeginForm())
{
    @Html.ValidationSummary(true)

    <table style="width: 99.9%">
        <tr>
            <td class="IndexBack">
                @Html.ActionLink(" ", "Index")</td>
            <td style="text-align: right">
                <span class="FormTitle">@Html.DisplayFor(model => model.Name)</span></td>
        </tr>
    </table>

    <div class="toolbar">
        <input type="submit" value="Save" />
    </div>
        
   

    <div class="NavSubMenu">
        <span class="SubMenu_Title">Employee...</span>

        <div class="SubMneu">
            <a href="#" id="Information" onclick="changeMenu(this.id)" class="SubMenuActive">
                <span class="NavSubMenu_Title">Information</span>
                <span class="NavSubMenu_Body">General Information Course</span>
            </a>
        </div>

        <div class="SubMneu">
            <a href="#" id="Adminstration" onclick="changeMenu(this.id)">
                <span class="NavSubMenu_Title">Adminstation</span>
                <span class="NavSubMenu_Body">General dminstation</span>
            </a>
        </div>
    </div>
    
    
    <div class="ContentSubMenu">
        <div id="tabInformation" class="SubMenuContent active">
            <span class="SubMenu_Title">Information</span>
            <fieldset>
                <legend>Employee</legend>
                <ol>
                    @Html.HiddenFor(Model => Model.EmployeeID)

                    <li class="editor-label">
                        @Html.LabelFor(model => model.Name)

                        @Html.EditorFor(model => model.Name)
                        @Html.ValidationMessageFor(model => model.Name)
                    </li>

                  

                    <li class="editor-label">
                        @Html.LabelFor(model => model.Email1)

                        @Html.EditorFor(model => model.Email1)
                        @Html.ValidationMessageFor(model => model.Email1)
                    </li>

                    <li class="editor-label">
                        @Html.LabelFor(model => model.Email2)

                        @Html.EditorFor(model => model.Email2)
                        @Html.ValidationMessageFor(model => model.Email2)
                    </li>

                    <li class="editor-label">
                        @Html.LabelFor(model => model.Mobile1)

                        @Html.EditorFor(model => model.Mobile1)
                        @Html.ValidationMessageFor(model => model.Mobile1)
                    </li>

                    <li class="editor-label">
                        @Html.LabelFor(model => model.Mobile2)

                        @Html.EditorFor(model => model.Mobile2)
                        @Html.ValidationMessageFor(model => model.Mobile2)
                    </li>

                    <li class="editor-label">
                        @Html.LabelFor(model => model.Address)

                        @Html.EditorFor(model => model.Address)
                        @Html.ValidationMessageFor(model => model.Address)
                    </li>


                    <li class="editor-label">
                        @Html.LabelFor(model => model.Phone)

                        @Html.EditorFor(model => model.Phone)
                        @Html.ValidationMessageFor(model => model.Phone)
                    </li>

                    <li class="editor-label">
                        @Html.LabelFor(model => model.Education)

                        @Html.EditorFor(model => model.Education)
                        @Html.ValidationMessageFor(model => model.Education)
                    </li>

                    <li class="editor-label OneColumn">
                        @Html.LabelFor(model => model.OtherDetails)

                        @Html.TextAreaFor(model => model.OtherDetails)
                        @Html.ValidationMessageFor(model => model.OtherDetails)
                    </li>


                    <li class="editor-label">
                        @Html.LabelFor(model => model.Salary)

                        @Html.EditorFor(model => model.Salary)
                        @Html.ValidationMessageFor(model => model.Salary)
                    </li>


                    
                </ol>

            </fieldset>
        </div>

        <div id="tabAdminstration" class="SubMenuContent">
            <span class="SubMenu_Title">Adminstration</span>

            <fieldset>
                <legend>Employee</legend>
                <ol>
                    @Html.HiddenFor(Model => Model.EmployeeID)

                    <li class="display-label">
                        @Html.DisplayNameFor(model => model.CreatedBy)

                        @Html.DisplayFor(model => model.CreatedBy)
                    </li>
                    <li class="display-label">
                        @Html.DisplayNameFor(model => model.CreatedOn)

                        @Html.DisplayFor(model => model.CreatedOn)
                    </li>
                    <li class="display-label">
                        @Html.DisplayNameFor(model => model.ModifiedBy)

                        @Html.DisplayFor(model => model.ModifiedBy)
                    </li>

                    <li class="display-label">
                        @Html.DisplayNameFor(model => model.ModifiedOn)

                        @Html.DisplayFor(model => model.ModifiedOn)
                    </li>
                    <li class="display-label">
                        @Html.DisplayNameFor(model => model.OwnerID)

                        @Html.DisplayFor(model => model.OwnerID)
                    </li>
                </ol>
            </fieldset>
        </div>
    </div>
}



@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
